//
//  CTableViewCell.m
//  纪宇婚礼纪
//
//  Created by dllo on 15/12/21.
//  Copyright © 2015年 LT. All rights reserved.
//

#import "CTableViewCell.h"

@interface CTableViewCell ()
@property (nonatomic, retain) UIImageView *tupian1;
@property (nonatomic, retain) UIImageView *tupian2;
@property (nonatomic, retain) UIImageView *tupian3;

@property (nonatomic, retain) UILabel *label;
@end

@implementation CTableViewCell
-(void)dealloc{
    [_label release];
    [_tupian1 release];
    [_tupian2 release];
    [_tupian3 release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self fangfa];
    }
    return self;
}
-(void)fangfa{
    self.backgroundColor = [UIColor blueColor];
    
 
    self.label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 375, 35)];
    self.label.backgroundColor = [UIColor yellowColor];
    self.label.text = @"标题";
    self.label.backgroundColor = [UIColor greenColor];
    [self.contentView addSubview:self.label];
    [_label release];
    
    self.tupian1 = [[UIImageView alloc]initWithFrame:CGRectMake(7, 40, 111, 87)];
    self.tupian1.backgroundColor = [UIColor brownColor];
    [self.contentView addSubview:self.tupian1];
    
    self.tupian2 = [[UIImageView alloc]initWithFrame:CGRectMake(127, 40, 111, 87)];
    self.tupian2.backgroundColor = [UIColor brownColor];
    [self.contentView addSubview:self.tupian2];
    
    self.tupian3 = [[UIImageView alloc]initWithFrame:CGRectMake(247, 40, 111, 87)];
    self.tupian3.backgroundColor = [UIColor brownColor];
    [self.contentView addSubview:self.tupian3];
    
    [_tupian1 release];
    [_tupian2 release];
    [_tupian3 release];
    
    
    
}












@end
